var ScoreView = JW.Canvas.Component.extend({
	color: "rgb(0,255,0)", // color of infoBar
	value: 0, // [integer]
	
	render : function() 
	{
		this._super();
		this.updateText();
	},
	setValue : function(value)
	{
		this.value = value;
		this.updateText();
	},
	
	updateText: function()
	{
		this.graphics.clear();
		
		this.graphics.beginPath();
		this.graphics.font("30pt sans-serif");
		this.graphics.fillStyle(this.color);
		this.graphics.fillText(String(this.value), 20, 40);
		this.graphics.closePath();
	}
});
